package com.seal.commons.infrastructure.facade.jms.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;


/**
 * ClassName:JmsListener <br/>
 * Func: 消息监听 <br/>
 * Date:     2019-05-31 10:19 <br/>
 *
 * @author yong.huang
 * @see
 * @since JDK 1.8
 */

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
@Inherited
public @interface JmsListener {

    String topic() default "";

    String tags() default  "";

    /**
     * CLUSTERING ： 集群消息，BROADCASTING：广播消息
     * @return
     */
    String messageModel() default "CLUSTERING";

}
